package com.lanou.mapper;

import com.lanou.entity.CourseRating;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseRatingMapper {
    int addCourseRating(CourseRating courseRating);
    int deleteCourseRatingByUserIdAndCourseId(int id);
    int updateCourseRatingByUserIdAndCourseId(CourseRating courseRating);
    List<CourseRating> selectCourseRatingByCourseIdPage(int CourseId);
}
